package com.example.demo.dao;

import com.example.demo.entity.CourseMaterialBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMaterialDao {
    Integer add(CourseMaterialBean courseMaterialBean);
    Integer update(CourseMaterialBean courseMaterialBean);
    Integer delete(Integer id);
    CourseMaterialBean getOneById(Integer id);
    List<CourseMaterialBean> list(String name, String sortOrder);
    Integer count(String name);
} 